package com.cyq.dascma.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyq.dascma.dto.StudentInfoDto;
import com.cyq.dascma.entity.Student;
import com.cyq.dascma.mapper.StudentMapper;
import com.cyq.dascma.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * dingwen
 * 2021/3/9 17:27
 **/
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {

    private final StudentMapper studentMapper;

    @Autowired
    StudentServiceImpl(StudentMapper studentMapper) {
        this.studentMapper = studentMapper;
    }

    @Override
    public List<StudentInfoDto> findStudentInfoList(Map<String, Object> params) {
        return studentMapper.findStudentInfoList(params);
    }
}
